package models

import (
	uuid "github.com/satori/go.uuid"
	"gorm.io/gorm"
)

//models 只是结构体
type Student struct {
	gorm.Model
	//Id   int    `gorm:"primary_key"`
	Name string `json:"name" form:"name" gorm:"column:name;type:varchar(255);size:255;"`
	Age  int    `json:"age" form:"age" gorm:"column:age"`
}
type User struct {
	ID       uint      `gorm:"primary_key"`
	UUID     uuid.UUID `json:"uuid" gorm:"comment:用户UUID"`
	Username string    `json:"userName" gorm:"comment:用户登录名"`
	Password string    `json:"-"  gorm:"comment:用户登录密码"`
	NickName string    `json:"nickName" gorm:"default:系统用户;comment:用户昵称" `
}
